export const setAddressObjFn = (list) => {
  let obj:any = null;

  if (list && list.length) {
    for (const item of list) {
      const { funId = null, address = null } = item;

      if (funId && address) {
        if (!obj) {
          obj = {};
        }

        obj[funId] = address;
      }
    }
  };

  return obj;
}
